<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page contentType="text/html" pageEncoding="UTF-8"%>
<jsp:include page="/WEB-INF/templateBackoffice/header.jsp"/>
<aside class="right-side">
    <section class="content-header">
        <nav class="navbar navbar-default">
            <div class="navbar-header">
            </div>
        </nav>
    </section>
    <section class="content">
        <div class="box box-primary">
            <div class="box-body table-responsive no-padding">
                <table class="table table-bordered table-striped">
                    <thead>
                        <tr class="sonata-ba-list-field-header">
                            <th class="sonata-ba-list-field-header-text">User Id</th>
                            <th class="sonata-ba-list-field-header-text">Societe</th>
                            <th class="sonata-ba-list-field-header-text">Login</th>
                            <th class="sonata-ba-list-field-header-text">Nom</th>
                            <th class="sonata-ba-list-field-header-text">Prenom</th>
                            <th class="sonata-ba-list-field-header-text">Email</th>
                            <th class="sonata-ba-list-field-header-text">Action</th>
                        </tr>
                    </thead>
                    <tbody>
                        <c:forEach items="${users}" var="user">
                            <tr>
                                <td class="sonata-ba-list-field sonata-ba-list-field-text"><c:out value="${user.idUtilisateur}" /></td>
                                <td class="sonata-ba-list-field sonata-ba-list-field-text"><c:out value="${user.entreprise.nom}" /></td>
                                <td class="sonata-ba-list-field sonata-ba-list-field-text"><c:out value="${user.login}" /></td>
                                <td class="sonata-ba-list-field sonata-ba-list-field-text"><c:out value="${user.nom}" /></td>
                                <td class="sonata-ba-list-field sonata-ba-list-field-text"><c:out value="${user.prenom}" /></td>
                                <td class="sonata-ba-list-field sonata-ba-list-field-text"><c:out value="${user.adresse}" /></td>
                                <td class="sonata-ba-list-field sonata-ba-list-field-text"><a href="members?action=delete&userid=<c:out value="${user.idUtilisateur}"/>"><i class="fa fa-trash"></i></a></td>
                            </tr>
                        </c:forEach>
                    </tbody>

                </table>
            </div>
        </div>
    </section>
</aside>
<jsp:include page="/WEB-INF/templateBackoffice/footer.jsp"/>
